# -*- coding: utf-8 -*-
import KBEngine

def SelectFriendList(idList, cbFun):
    #查询好友信息列表
    strIdList = ""
    idCount = len(idList)
    for i in range(idCount):
        strIdList += str(idList[i])
        if i != idCount-1:
            strIdList += ","
    strSql = "select id,sm_nickName,sm_avatarUrl,sm_score,sm_weekScore,sm_lastGetScoreTime from tbl_Account where id in(" + strIdList + ")"
    KBEngine.executeRawDatabaseCommand(strSql, cbFun)